﻿#pragma once
#include <string>
#include <string_view>
namespace as
{
	namespace db
	{
		struct MysqlConnConfig
		{
			MysqlConnConfig(const std::string_view &databases = "", const std::string_view &host = "localhost", const std::string_view &user = "root", const std::string_view &pw = "", int port = 3306, bool reconn = true);
			std::string host_ = "localhost";
			std::string user_ = "root";
			std::string pw_;
			int port_ = 3306;
			std::string databases_;
			std::string charset = "utf8";
			bool auto_reconnect_ = false;
		};
	}
}
